package com.zmn.uac.common.info;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：授权登录code
 *
 * @author xujie
 * @since 2021/06/09 16:13
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("授权登录code")
@EqualsAndHashCode(callSuper = true)
public class AuthLoginCode extends UserAuthPhoneInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * code
     */
    @JSONField(name = "code")
    @NotNull(message = "code不能为空")
    @ApiModelProperty(value = "code", name = "code", required = true)
    private String code;

    @ApiModelProperty(value = "注册入口", name = "entrance", required = true)
    private Integer entrance;

    @ApiModelProperty(value = "deviceId设备信息", notes = "默认为 UTF-8")
    private String deviceId;
}
